<div class="container">
	<div class="row row-offcanvas row-offcanvas-right">
		<div class="col-xs-6 col-sm-3">
			<div class="well sidebar-nav">
				<ul class="nav">
					<li><a href="<?= WEB_PATH?>/admin/phone">Manage phone</a></li>
					<li><a href="<?= WEB_PATH?>/admin/catagory">Manage catagory</a></li>
					<li><a href="<?= WEB_PATH?>/admin/feedback">Manage feedback</a></li>
					<li><a href="<?= WEB_PATH?>/admin/banner">Manage banner</a></li>
					<li><a href="<?= WEB_PATH?>/admin/order">Manage order</a></li>
				</ul>
			</div>
		</div>
		<!--/span-->

		<div class="col-xs-12 col-sm-9 sidebar-offcanvas" id="sidebar">
			<div class="row"><a class="btn btn-success" href="<?=WEB_PATH?>/admin/catagory/add">Thêm hãng</a></div>
			<table class="table">
				<tr>
					<th>Mã số</th>
					<th>Tên Hãng</th>
					<th></th>
				</tr>
				<?php foreach ($this->catagories as $index => $catagory) {?>
				<tr class="<?= $index % 2 == 0? 'active' : ''?>">
					<td><?=$catagory->id?></td>
					<td><?=$catagory->name?></td>
					<td>
						<a class="btn btn-success" href="<?=WEB_PATH?>/admin/catagory/edit/id/<?=$catagory->id?>">Chỉnh sửa</a> 
						<a class="btn btn-success" href="<?=WEB_PATH?>/admin/catagory/delete/id/<?=$catagory->id?>">Xóa</a> 
					</td>
				</tr>
				<?php }?>
			</table>
			<!--/.well -->
		</div>
		<!--/span-->

	</div>
	<!--/row-->
	
	
	<hr>

	<footer>
		<p>&copy; Company 2013</p>
	</footer>
</div>

<!--/.container-->